﻿
function modalDialog(url, name, width, height) {
  if (width == "undefined") {
    width = 400;
  }
  if (height == "undefined") {
    height = 300;
  }

  if (window.showModalDialog) {
    window.showModalDialog(url, name, 'dialogWidth=' + (width) + 'px; dialogHeight=' + (height+5) + 'px; status=off');
  }
  else {
    x = (window.screen.width - width) / 2;
    y = (window.screen.height - height) / 2;

    window.open(url, name, 'height='+height+', width='+width+', left='+x+', top='+y+', toolbar=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, modal=yes');
  }
}
var adminId = '0';
function ShowToDoList() {
  try {
    var mainFrame = window.top.frames['main-frame'];
    mainFrame.window.showTodoList(adminId);
  }
  catch (ex) { }
}

